package com.jhz.speedy.component.db;

import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.jhz.speedy.component.application.MyApplication;

/**
 * 数据库
 * Created by JunHeZ on 2017/7/12.
 */

public class DbHelper extends SQLiteOpenHelper{
    public static final String DB_NAME = "OrangMode.db";
    public static final int version = 1;
    private static DbHelper dbHelper;

    private DbHelper() {
        super(MyApplication.getInstance(), DB_NAME, null, version);
    }

    public static DbHelper getInstance() {
        if(dbHelper == null)
            dbHelper = new DbHelper();
        return dbHelper;
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
//        sqLiteDatabase.execSQL(UserDao.getInstance().getCreateStr());
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
